package mobilesearch.data;

import android.os.Parcel;
import android.os.Parcelable;
import android.util.Log;

public class ImageData implements Parcelable {

	private static final String TAG = "ImageData";
	
	private String imageId;
	private String imageName;
	private String imageTime;
	
	public ImageData() {
		Log.i(TAG, "ImageData");
	}
	
	private ImageData(Parcel source){
		this.imageId = source.readString();
		this.imageName = source.readString();
		this.imageTime = source.readString();
	}
	
	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(this.imageId);
		dest.writeString(this.imageName);
		dest.writeString(this.imageTime);
	}
	
	public static final Parcelable.Creator<ImageData> CREATOR =new Parcelable.Creator<ImageData>() {

		@Override
		public ImageData createFromParcel(Parcel source) {
			return new ImageData(source);
		}

		@Override
		public ImageData[] newArray(int size) {
			return new ImageData[size];
		}
	};

	public String getImageId() {
		return imageId;
	}

	public void setImageId(String imageId) {
		this.imageId = imageId;
	}

	public String getImageName() {
		return imageName;
	}

	public void setImageName(String imageName) {
		this.imageName = imageName;
	}

	public String getImageTime() {
		return imageTime;
	}

	public void setImageTime(String imageTime) {
		this.imageTime = imageTime;
	}
	
	
}
